Latest Questions

Wordpress menu showing all pages except on home page

I have made a WordPress site. Here, I have added a menu bar for all pages. But the menu bar is shown on all pages except the home page. How can I fix it?

Powershell script to remove users from distribution groups

I'm trying to find a solution to remove a user from all the distribution groups they are in. I found this script but am running into issues: $email = Read-Host

React-router showing invalid hook call

An invalid hook error occurred in my react app caused by react-router but I can't seem to detect where it's coming from. The full error reads as follows: Error:

Blocked in work with VS 2022 .NET Core 6: "Could not load file or assembly 'Microsoft.DataAI.NuGetRecommender.Contracts"

I can not use NuGet Package Manager because in the package browse window I got the Error occurred message. Clicking "Show errors in output" gives: Could not lo

How to convert an activity to fragment in Android studio

Can someone tell me how i do that or someone can change this activity to fragment for me. i have very few experiance in cooding right now, so i can't do this my

Unable to connect externally (docker, linux)

I followed the docker install on an old laptop running Linux Mint una Last night I set up DDNS with noip.com and managed to connect to wow (on the same network)

Getting "...'editorState' does not exist on type 'IntrincsicAttributes

I'm working on a post section on my webapp and I decided to use react-draft-wysiwyg. Everything was working fine up to the point where I set editorState={editor

CODE . command no longer works in terminal

Yesterday, the "code ." command was working perfectly fine. Overnight I did update my Mac to Monterey and now, I'm not understanding the exact reason why this c

Accessing html elements with $refs returns different than document.getElementById()

I have two components, A and B. Component A has a programatically generated svg that is appended to a div that has (ref="graph"). Component B has a link that up

http POST request: curl and postman both succeeded but resttemplate gives 400 Bad Request

I'm trying to convert a curl (also proved working in postman) query to java resttemplate: $ curl -X POST https://my.server/apiv2/login -k -H 'Accept: applicati

How to setup browser-sync with Wordpress and xampp

In my gulpfile.js I have the following code: const themeName = "test" const browsersync = require('browser-sync').create(); // Browsersync function browserSync

M2Mqtt in C# is not connected, doesn't give data

I have a project creating a websocket client side (Subscriber) to a MQTT publisher. I am quite new to C# and MQTT protocol. I follow some youtube video to make

How i can duplicate a record with your dependents in spring boot

In my use case I need to create an endpoint that duplicates a record and its dependents by copying the data from the current record to a new record creating new

How to choose executable which runs a virtual environment

How does one create virtual environment that runs on it's own executable? I used anaconda to create new Venv (to experiment with installing new modules) by clon

C# and MongoDB - Returning values from an object

I'm hoping someone can help: I have MongoDB collection for a User which has an Array called Reports which holds objects with IDs. I can retrieve the IDs but I'm

Stop tcp packets from concatenating

I have two apps sending tcp packages, both written in python 2. When client sends tcp packets to server too fast, the packets get concatenated. Is there a way t

Target map()'ed items one by one

I want to create a contact form where the form fields are changed after they are filled. For example when you fill the email field, you press enter or click the

ionic ble : not able to show the updated ble device name on change

ok so i have created an app using ionic and angular and i want to change the ble device name. For that i am using ionic ble(ble.writeWithNoResponse) ionic-ble g

MD5 Hashing On Embedded PLC in C

I'm working on a project for work that requires me to convert password strings to MD5 hash and I'm having trouble. I know MD5 isn't the best for this purpose, b

How to pass the Amplify app ID to a function? How to do app introspection from backend functions?

Background Amplify apps are easily extensible with Lambda functions, using amplify add function. Great! Problem How can I access the Amplify app ID from the La

i cant directly going to login page with codeigniter 4, and using myth/auth

i tried to using codeigniter 4 and try using myth/auth, and i get a problem, if put restricted in my filters its not loading the login page public $aliases

Pysnow Usage of sysparm_query_category

As I cannot see any reference on how to use properly the sysparm_query_category, may I confirm on how did you append the sysparm_query_category in get request?

calculate a normal distribution in trigger SQL

I want to create a trigger in SQL when updating data in a column we will check what the data is and we will update in a separate column and use a normal distrib

Unable to run mockttp with Cypress

I'm trying to run the mockttp with cypress. I used the example that's listed in project github. I changed the port to run on 3000 but I am getting an error sayi

Angular Node - require not being used

In my Angular 13.x / Typescript 4.x project I have a reference to a node_module @types\prosemirror-schema-list In it the code uses require : I added import Ord

Implementing multiprocessing for a nested loop calculation (python)

I am trying to implement multiprocessing to speed up a nested loop. Following is a psudo code of what happens: result = [] z = [] a1 = array of values a2 = arra

Can anyone give me a comprehensive guide to installing tensorflow-federated on M1 Mac?

i followed the instructions given by the official tf documentation, but i just cannot resolve the various problems encountered. Did anyone have the experience i

Linux custom init and SIGTERM

I try to build my own init with rust language. this is my example code : use std::process::Command; fn main() { loop { println!("Welcome to custom

I published a dark post ad on my facebook page, but only I can see that post on my page

Hi I need a Facebook lead ad appearing on my facebook wall, but after publishing the ad to the Facebook page, only I can see it, other people can´t. Is th

Changing html element attribute using vue $refs

I am trying to access the href attribute of a link element in a distant componant. The @click func will generate a new href and then place it in the link elemen